//
//  Matrix.hpp
//  learnC++
//
//  Created by liuzhibing on 2018/6/6.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#ifndef Matrix_hpp
#define Matrix_hpp

#include <stdio.h>
#include <iostream>
#include <cassert>

//重载运算符()

class Matrix4x4 {
private:
    double m_data[4][4];
    
public:
    Matrix4x4();
    
    double &operator()(int row,int col);
    const double& operator()(int row,int col)const;
};

/*
 Matrix4x4 m;
 m(0,0) = 4.5;
 std::cout << m(0, 0);

 重载()还有很多用法，例如传一个参数获取某个类的某个值
 */

#endif /* Matrix_hpp */
